﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Material_Plalog : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Material_Plalog", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Material_Plalog", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Material_Plalog", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Material_Plalog", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Material_Plalog", "No");

        [Column] public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } } 
        private string _SAP_Code; 
        public static FieldInfo sAP_Code = new FieldInfo("mdc_Material_Plalog", "SAP_Code");

        [Column] public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } } 
        private string _Plant; 
        public static FieldInfo plant = new FieldInfo("mdc_Material_Plalog", "Plant");

        [Column] public string Extend_Sales { get { return _Extend_Sales; } set { _Extend_Sales = value; EntityState.FieldChange("Extend_Sales"); } } 
        private string _Extend_Sales; 
        public static FieldInfo extend_Sales = new FieldInfo("mdc_Material_Plalog", "Extend_Sales");

        [Column] public string Storage_Location { get { return _Storage_Location; } set { _Storage_Location = value; EntityState.FieldChange("Storage_Location"); } } 
        private string _Storage_Location; 
        public static FieldInfo storage_Location = new FieldInfo("mdc_Material_Plalog", "Storage_Location");

        [Column] public string Loading_Group { get { return _Loading_Group; } set { _Loading_Group = value; EntityState.FieldChange("Loading_Group"); } } 
        private string _Loading_Group; 
        public static FieldInfo loading_Group = new FieldInfo("mdc_Material_Plalog", "Loading_Group");

        [Column] public string With_qty_Struture { get { return _With_qty_Struture; } set { _With_qty_Struture = value; EntityState.FieldChange("With_qty_Struture"); } } 
        private string _With_qty_Struture; 
        public static FieldInfo with_qty_Struture = new FieldInfo("mdc_Material_Plalog", "With_qty_Struture");

        [Column]
        public string ICD { get { return _ICD; } set { _ICD = value; EntityState.FieldChange("ICD"); } }
        private string _ICD;
        public static FieldInfo iCD = new FieldInfo("mdc_Material_Plalog", "ICD");

        [Column] public string Do_not_cost { get { return _Do_not_cost; } set { _Do_not_cost = value; EntityState.FieldChange("Do_not_cost"); } } 
        private string _Do_not_cost; 
        public static FieldInfo do_not_cost = new FieldInfo("mdc_Material_Plalog", "Do_not_cost");

        [Column] public string Plant_spmatl_status { get { return _Plant_spmatl_status; } set { _Plant_spmatl_status = value; EntityState.FieldChange("Plant_sp.matl_status"); } } 
        private string _Plant_spmatl_status; 
        public static FieldInfo plant_spmatl_status = new FieldInfo("mdc_Material_Plalog", "Plant_spmatl_status");

        [Column] public string SPT { get { return _SPT; } set { _SPT = value; EntityState.FieldChange("SPT"); } } 
        private string _SPT; 
        public static FieldInfo sPT = new FieldInfo("mdc_Material_Plalog", "SPT");

        [Column]
        public string Remark { get { return _Remark; } set { _Remark = value; EntityState.FieldChange("Remark"); } }
        private string _Remark;
        public static FieldInfo remark = new FieldInfo("mdc_Material_Plalog", "Remark");

        [Column] public string Deletion_flag { get { return _Deletion_flag; } set { _Deletion_flag = value; EntityState.FieldChange("Deletion_flag"); } } 
        private string _Deletion_flag; 
        public static FieldInfo deletion_flag = new FieldInfo("mdc_Material_Plalog", "Deletion_flag");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Material_Plalog", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Material_Plalog", "Status");
    }
}
